import HttpRequest from "@/api/request.js"

const httpUtils = new HttpRequest();

/**
 * 此处为实例代码
 * @method getRequestInstance GET请求实例
 * @method postRequestInstance POST请求实例
 */
const requestInstanceApi = () => {
	return {
		getRequestInstance: (params = {}, show = false) => {
			return httpUtils.getRequest({
				url: '/api/request_instance',
				show,
				params,
				interfaceTitle: 'GET请求实例',
			})
		},
		postRequestInstance: (params = {}, show = false) => {
			return httpUtils.postRequest({
				url: '/api/request_instance',
				show,
				params,
				interfaceTitle: 'POST请求实例',
			})
		},
	}
}